package com.rx.mgt.service;

import com.rx.mgt.dao.RuleDetailDao;
import com.rx.mgt.domain.EmailRuleDetailDomain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by zxj on 2017/8/15.
 */
@Service
@Transactional
public class RuleDetailService {

    @Autowired
    private RuleDetailDao ruleDao;
    public List<EmailRuleDetailDomain> queryRuleDetailById(String id) {
        return ruleDao.find("from EmailRuleDetailDomain e where e.rx_rule_id=?",id);
    }
}
